package org.eiahe.hr.interview.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.ehe.common.mybatis.core.domain.BaseEntity2;

import java.util.List;

/**
 * 题库表
 * @author
 * @date
 */
@Data
@TableName("t_interview_question")
public class InterviewQuestion extends BaseEntity2 {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 题库ID
     */
    @TableField("bank_id")
    private Long bankId;

    @TableField(exist = false)
    private String bankName;

    /**
     * 难度等级(1-初级, 2-中级, 3-高级)
     */
    @TableField("level")
    private Integer level;

    /**
     * 题目分值
     */
    @TableField("question_score")
    private Double questionScore;

    /**
     * 题目标题
     */
    @TableField("question_title")
    private String questionTitle;

    /**
     * 题目内容
     */
    @TableField("question_content")
    private String questionContent;

    /**
     * 题目类型(1-技术题, 2-行为题, 3-综合题)
     */
    @TableField("question_type")
    private Integer questionType;

    /**
     * 难度系数(1-简单, 2-一般, 3-困难)
     */
    @TableField("difficulty")
    private Integer difficulty;

    /**
     * 标准答案
     */
    @TableField("standard_answer")
    private String standardAnswer;

    /**
     * 答题要点(JSON格式存储)
     */
    @TableField("answer_points")
    private String answerPoints;

    /**
     * 标签(用逗号分隔)
     */
    @TableField("tags")
    private String tags;

    /**
     * 状态(1-启用, 0-禁用)
     */
    @TableField("status")
    private Integer status;

    @TableField(exist = false)
    private InterviewBehaviorQuestions behaviorQuestions;
    @TableField(exist = false)
    private List<InterviewBehaviorOptions> optionsList;
}

